from tortoise import fields, models


class UserModel(models.Model):
    user_id = fields.IntField(pk=True)
    user_name = fields.CharField(max_length=255)
    email = fields.CharField(max_length=255, unique=True)
    password = fields.CharField(max_length=255)

    # 指定数据库表名
    class Meta:
        table = "sys_user"
